VERSION 5.00
Begin VB.Form frmPrintPreview 
   BackColor       =   &H8000000E&
   Caption         =   "Preview"
   ClientHeight    =   10365
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   12780
   Icon            =   "frmPrintPreview.frx":0000
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   10365
   ScaleWidth      =   12780
   WindowState     =   2  'Maximized
   Begin VB.CommandButton Command2 
      Caption         =   "Close"
      Height          =   495
      Left            =   1920
      Picture         =   "frmPrintPreview.frx":1CCA
      TabIndex        =   2
      Top             =   0
      Width           =   1455
   End
   Begin VB.CommandButton Command1 
      Height          =   495
      Left            =   0
      Picture         =   "frmPrintPreview.frx":3F2A
      Style           =   1  'Graphical
      TabIndex        =   1
      Top             =   0
      Width           =   1695
   End
   Begin VB.PictureBox Picture1 
      BackColor       =   &H8000000E&
      BorderStyle     =   0  'None
      Height          =   8775
      Left            =   0
      ScaleHeight     =   8775
      ScaleWidth      =   12975
      TabIndex        =   0
      Top             =   500
      Width           =   12975
   End
End
Attribute VB_Name = "frmPrintPreview"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
frmSubPrint.PrintForm
End Sub

Private Sub Command2_Click()
Unload frmSubPrint
Unload Me
End Sub

Private Sub Form_Load()
Call SetParent(frmSubPrint.hwnd, Picture1.hwnd)
                    Picture1.ZOrder (0)
                    frmSubPrint.BorderStyle = 0
                    frmSubPrint.Show
                    Call frmSubPrint.Move(0, 0)
                    frmSubPrint.ZOrder (0)
                    frmSubPrint.BorderStyle = 0

End Sub

Public Function setTitle(txt As String)
frmSubPrint.lblTitle.Caption = UCase(txt)
If UCase(txt) = "MONEY EXCHANGE" Then
    Call frmSubPrint.filldataME
ElseIf UCase(txt) = "BANK && CASH TRANSFER" Then
    Call frmSubPrint.filldataCBT
Else
    Call frmSubPrint.filledindata
End If
End Function

